# Compiler
CC=bcc32
LINKER=ilink32
SRCDIR=..\src
# Parameters given to the compiler
CFLAGS=-I\borland\bcc55\include;..\..\..\lib3d -DWIN32 -DENGINE_EXPORTS -c
LFLAGS=-Tpd -L..\..\..\build\borland;\borland\bcc55\lib;\borland\bcc55\lib\psdk -x -v
# Output filename
OUTPUT="engine.dll"

# Source files
SRCS=$(SRCDIR)\engine.cpp $(SRCDIR)\enginegl.cpp
# Output object files (*.o)
OBJS=engine.obj enginegl.obj c0d32.obj
# def files
DEFS=..\borland\engine.def
# libraries
LIBS=cw32.lib lib3d.lib import32.lib

link:
        $(LINKER) $(LFLAGS) $(OBJS),$(OUTPUT),,$(LIBS),$(DEFS)

compile:
        $(CC) $(CFLAGS) $(SRCS)
all: compile link

clean:
        del *.obj

mrproper: clean

